﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using BonsaiScrum.Core.Query;
using BonsaiScrum.Data.CustomTypes;

namespace BonsaiScrum.Data.Mappings.Query
{
    public class SprintReportMap : ClassMap<SprintReport>
    {
        public SprintReportMap()
        {
            Table("Sprint");

            Id(x => x.Id, "SprintID")
                .Access.BackingField();

            Map(x => x.StartDate, "SprintStartDate")
                .Access.BackingField();

            Map(x => x.EndDate, "SprintEndDate")
                .Access.BackingField();

            Map(x => x.Description, "SprintDesc")
                .Access.BackingField();

            Map(x => x.ProjectID, "ProjectID")
                .Access.BackingField();
        }
    }
}